package com.dmz.insclient;

import com.dmz.insclient.server.InsServer;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * @author lee
 */
@SpringBootApplication
@Slf4j
public class InsClientApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(InsClientApplication.class, args);
        
        // 在独立线程中启动Socket服务，避免阻塞主线程
        InsServer insServer = context.getBean(InsServer.class);
        insServer.startServer();

    }
}